<div class="inner">
    <div class="content">
        <ul class="error">
            <?php if ($error != ''): ?>
                <li><?php echo $error ?></li>
            <?php endif; ?>
            <?php echo form_error('price_city_new') ?>
            <?php echo form_error('name_city') ?>
            <?php echo form_error('type_group') ?>
        </ul>
        <form name="addCategory" id="addCategory" action="" method="POST" class="has-validation">
            <input type="hidden" name="frmToken" id="frmToken" value="<?php echo $frmToken ?>"/>
            <div class="form-input">
                <label>Chọn đại lý sim:</label><br/>
                <select id="name_city" name="name_city" required="required">
                    <option value="">------------------------</option>
                    <?php foreach ($tmp as $t): ?>
                        <option value="<?php echo $t['id'] ?>"><?php echo $t['name'] ?></option>
                    <?php endforeach; ?>
                </select>
            </div>
            <br/>
            <div class="form-input">
                <label>Loại:</label><br/>
                <select id="type_group" name="type_group" required="required">
                    <option value="">------------------------</option>
                    <option value="1">Tăng giá</option>
                    <option value="2">Giảm giá</option>
                </select>
            </div>
            <br/>
            <p>
                <label>Nhập giá:</label><br/>
                <input type="text" id="price_city_new" required="required" name="price_city_new" style="width:154px" value=""/>
                <select required="required" name="type_price_new" id="type_price_new">
                    <option value="1">đ</option>
                    <option value="2">%</option>
                </select>
            </p>
            <br/>
            <p>
                <input type="submit" name="submit" value="Đồng ý"/>
                <input type="reset" name="reset" value="Xóa hết"/>
            </p>
        </form>

        <a href="<?php echo site_url('admin/city/index/') ?>" style="float:right">Quay lại</a>
    </div>
</div>
<!-- End one column tab content window -->
<script type="text/javascript">
    $(document).ready(function() {
        $('#price_city_new').setMask({
            mask: '999,999,999,999,999,999,999,999,999,999,999,999,999,999,999,999,999,999,999.99',
            type: 'reverse',
            defaultValue: ''
        });
    });
</script>